# Contributor: <iilluzion@gmail.com>
# Maintainer: Iilluzion <iilluzion@gmail.com>
pkgname=iproute2-qos
pkgver=0.6
pkgrel=0
pkgdesc="Scripts to set up quality of service with iproute2"
url="https://git.alpinelinux.org/aports"
arch="noarch"
license="GPL-2.0-only"
depends="iproute2"
subpackages="$pkgname-openrc"
source="qos.initd qos.eth0.sample qos.ifb0.sample setup-qos"
options="!check"

package() {
	install -m755 -D "$srcdir"/setup-qos "$pkgdir"/usr/sbin/setup-qos
	install -m755 -D "$srcdir"/qos.initd "$pkgdir"/etc/init.d/qos
	install -m644 -D "$srcdir"/qos.eth0.sample \
		"$pkgdir"/etc/conf.d/qos.eth0.sample
	install -m644 -D "$srcdir"/qos.ifb0.sample \
		"$pkgdir"/etc/conf.d/qos.ifb0.sample
}

sha512sums="
8a0b1df950e36e20cabc45ae172afe62bcbf8f3ef65481bc54d179c8c5eeeb3b5c82f50165259c84d6125698fde308031048dacf257d260f164e19c9ae0110b5  qos.initd
9c4ca37a6416dc6bc4e0b3fbce0568cbd9c31f3c0fde1d3c8b713bf8b185859c948121ddc4182e2b133b29fab63f4d928aca27205568fc656f2787829beef243  qos.eth0.sample
720396a86552de052faad47c22a5b295d00de01ac81fad109c5c6a7bad1b05ac9282a5edc175149361228480aad2d246b2def7fc1fa3d7acdcbe12ea9ef9a2ac  qos.ifb0.sample
f682e56a99e8f9dbde9895dab7f40c2da8d95695f37b347f153e11a6918f963f0ccd65b380a4fb220d14e11399594c34b05797f722ede827fd5b8fbc8a692718  setup-qos
"
